import shopContainer from "../../views/shop/container.vue"
import transportView from "../../views/shop/transport.vue"
import addShopView from "../../views/shop/add.vue"
import detailShopView from "../../views/shop/detail.vue"
import statusShopView from "../../views/shop/status.vue"


import merchantView from "../../views/shop/home/merchant.vue"
import searchView from "../../views/shop/home/searchShop.vue"
import detailView from "../../views/shop/home/detail.vue"
import buyView from "../../views/shop/home/buy.vue"
import collectView from "../../views/shop/order/collect.vue"
const shop = {
   path: "/shop",
   component: shopContainer,
   children: [
      {
         path:"order/collect/:id",
         component:collectView,
        },
      //主页子页面 start
       //详情页面  
      {
         path: "home/buy",
         component: buyView
      },
      //详情页面  
      {
         path: "home/detail/:id",
         component: detailView
      },
      //搜索页面
      {
         path: "home/search",
         component: searchView
      },
      //单个供应商页面
      {
         path: "home/merchant/:id",
         component: merchantView
      },
      //主页子页面 end

      // 发货情况页面
      {
         path: "tarnsport",
         component: transportView
      },
      //    添加商品页面
      {
         path: "add",
         component: addShopView
      },
      //    商品详情页面
      {
         path: "detail",
         component: detailShopView
      },
      //    商品上架/下架状况页面
      {
         path: "status",
         component: statusShopView
      },
   ]
}

export default shop